package com.yanqu.road.entity.kowloon.enums;

/**
 * 路线类型
 */
public enum eKowloonRouteType {

    RouteNone(0, "无路线"),
    Route1(1, "当前点垂直向下走到摊位"),
    Route2(2, "当前点走到盘面上一格（盘面上向下走，盘面下向上走）"),
    Route3(3, "当前点水平走到一侧（靠左往左走，靠右往右走）"),
    Route4(4, "当前点水平走到中间（靠左往右走，靠右往左走）"),
    Route5(5, "斜着向上走到另一侧（靠左向右上，靠右向左上）"),
    Route6(6, "斜着向下走到另一侧（靠左向右下，靠右向左下）"),
    Route7(7, "直线闪现"),
    Route8(8, "两侧走到盘面上一格（盘面上向下走，盘面下向上走）,仅当路线8开头时生效,非路线8开头效果同路线2"),

    ;

    private int value;
    private String name;

    eKowloonRouteType(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public static eKowloonRouteType forValue(int value) {
        for (eKowloonRouteType type : eKowloonRouteType.values()) {
            if (type.value == value) {
                return type;
            }
        }
        return null;
    }
}
